import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '@/views/LoginView.vue'
import Register from '@/views/Register.vue'
import IndexView from '@/views/IndexView.vue'
import AppointmentView from '@/views/AppointmentView.vue'
import HospitalView from '@/views/HospitalView.vue'
import SetmealView from '@/views/SetmealView.vue'
import SelectDateView from '@/views/SelectDateView.vue'
import ConfirmOrderView from '@/views/ConfirmOrderView.vue'
import PersonalView from '@/views/PersonalView.vue'
import AppointmentSuccessView from '@/views/AppointmentSuccessView.vue'
import StoreView from '@/views/StoreView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: LoginView,
    },
    {
     path: '/index',
      name: 'index',
      component: IndexView
   },
   {
      path: '/appointment',
      name: 'appointment',
      component: AppointmentView,
    },{
      path: '/hospital',
      name: 'hospital',
      component: HospitalView,
    },{
      path: '/setmeal',
      name: 'setmeal',
      component: SetmealView,
    },{
      path: '/selectDateView',
      name: 'selectDateView',
      component: SelectDateView,
    },{
      path: '/confirmOrderView',
      name: 'confirmOrderView',
      component: ConfirmOrderView,
    },
    {
      path:'/personalView',
      name:'personalView',
      component:PersonalView
    },{
      path:'/appointmentSuccess',
      name:'/appointmentSuccess',
      component:AppointmentSuccessView
    },{
      path:'/store',
      name:'store',
      component:StoreView
    },
  ],
})

export default router
